package com.ysy.enums;

import com.ysy.persimmons.common.exception.BaseExceptionInterface;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResponseCodeEnum implements BaseExceptionInterface {

    // ----------- 通用异常状态码 -----------
    SYSTEM_ERROR("AUTH-500", "系统开小差了，正在努力修复中..."),
    PARAM_NOT_VALID("AUTH-101", "参数错误"),
    VERIFICATION_CODE_SEND_FREQUENTLY("AUTH-102", "请求太频繁，请3分钟后再试"),
    VERIFICATION_CODE_ERROR("AUTH-103", "验证码错误"),
    LOGIN_TYPE_ERROR("AUTH-104", "登录类型错误"),
    USER_NOT_FOUND("AUTH-105", "该用户不存在"),
    PHONE_OR_PASSWORD_ERROR("AUTH-106", "手机号或密码错误"),
    LOGIN_FAIL("AUTH-107", "登录失败");
    private String errorCode;
    private String errorMessage;


}
